

<script>
    $(function () {
        $("#datepicker").datepicker();
    });
</script>
<?php
echo $this->Form->create('ThanhToan', array('action' => 'edit'));
?>
<fieldset>
    <legend><label>Cập nhật phiếu thanh toán</label></legend>
    <?php
        echo $this->Form->input('id', array('type' => 'hidden'));
        echo $this->Form->input('MAKH', array('type' => 'hidden'));
        echo $this->Form->input('MANV', array('type' => 'hidden'));
    ?>
    <dl>
        <dt><label>Số tiền thanh toán</label></dt>
        <dd><?php echo $this->Form->input('SOTIENTHANHTOAN', array('label' => false)); ?></dd>
    </dl>
    <dl>
        <dt><label>Ngày thanh toán</label></dt>
        <dd><?php echo $this->Form->input('NGAYTHANHTOAN', array('id' => 'datepicker', 'type' => 'text', 'label' => false, 'readonly' => true)); ?></dd>
    </dl>
</fieldset>
<div class="button">
    <?php
    echo $this->Form->submit('Lưu');
    echo $this->Html->link('Hủy', array('action' => 'index'), array('class' => 'cancel'));
    echo $this->Form->end();
?>
</div>